
<!DOCTYPE HTML>
<html lang="" >
    <head>
        <title>主题交换机 · RabbitMQ in Chinese</title>
        <meta charset="UTF-8">
        <meta http-equiv="X-UA-Compatible" content="IE=edge" />
        <meta content="text/html; charset=utf-8" http-equiv="Content-Type">
        <meta name="description" content="">
        <meta name="generator" content="GitBook 3.0.0-pre.14">
        <meta name="author" content="Ping <yuanta11@gmil.com>">
        
        
    
    <link rel="stylesheet" href="../gitbook/style.css">

    
            
                
                <link rel="stylesheet" href="../gitbook/gitbook-plugin-expandable-chapters-interactive/expandable-chapters.css">
                
            
                
                <link rel="stylesheet" href="../gitbook/gitbook-plugin-search-plus/search.css">
                
            
                
                <link rel="stylesheet" href="../gitbook/gitbook-plugin-highlight/website.css">
                
            
                
                <link rel="stylesheet" href="../gitbook/gitbook-plugin-fontsettings/website.css">
                
            
        

    

    
        
    
        
    
        
    
        
    
        
    
        
    

        
    
    
    <meta name="HandheldFriendly" content="true"/>
    <meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no">
    <meta name="apple-mobile-web-app-capable" content="yes">
    <meta name="apple-mobile-web-app-status-bar-style" content="black">
    <link rel="apple-touch-icon-precomposed" sizes="152x152" href="../gitbook/images/apple-touch-icon-precomposed-152.png">
    <link rel="shortcut icon" href="../gitbook/images/favicon.ico" type="image/x-icon">

    
    <link rel="next" href="[6]RPC.html" />
    
    
    <link rel="prev" href="[4]Routing.html" />
    

    </head>
    <body>
        
<div class="book">
    <div class="book-summary">
        
            
<div id="book-search-input" role="search">
    <input type="text" placeholder="Type to search" />
</div>

            
                <nav role="navigation">
                


<ul class="summary">
    
    
    
        
        <li>
            <a href="http://mr-ping.com" target="_blank" class="custom-link">瓶先生</a>
        </li>
    
    

    
    <li class="divider"></li>
    

    
        
        
    
        <li class="chapter " data-level="1.1" data-path="../">
            
                <a href="../">
            
                    
                    RabbitMQ中文文档
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.2" >
            
                <span>
            
                    
                    RabbitMQ简介
            
                </span>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.2.1" data-path="../description.html">
            
                <a href="../description.html">
            
                    
                    RabbitMQ能为你做些什么？
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.3" >
            
                <span>
            
                    
                    安装
            
                </span>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.3.1" data-path="../installation/Installing_on_Debian_Ubuntu.html">
            
                <a href="../installation/Installing_on_Debian_Ubuntu.html">
            
                    
                    在Debian及Ubuntu系统上进行安装
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.3.2" data-path="../installation/Platforms_supported_by_RabbitMQ.html">
            
                <a href="../installation/Platforms_supported_by_RabbitMQ.html">
            
                    
                    RabbitMQ所支持的平台
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.4" >
            
                <span>
            
                    
                    AMQP协议
            
                </span>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.4.1" data-path="../AMQP/AMQP_0-9-1_Model_Explained.html">
            
                <a href="../AMQP/AMQP_0-9-1_Model_Explained.html">
            
                    
                    AMQP 0.9.1 模型解析
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.4.2" data-path="../AMQP/amqp-0-9-1-quickref.html">
            
                <a href="../AMQP/amqp-0-9-1-quickref.html">
            
                    
                    AMQP 0.9.1 快速参考指南
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.5" >
            
                <span>
            
                    
                    应用教程
            
                </span>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.5.1" >
            
                <span>
            
                    
                    Python版
            
                </span>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.5.1.1" data-path="../tutorials_with_python/[1]Hello_World.html">
            
                <a href="../tutorials_with_python/[1]Hello_World.html">
            
                    
                    Hello World
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.5.1.2" data-path="../tutorials_with_python/[2]Work_Queues.html">
            
                <a href="../tutorials_with_python/[2]Work_Queues.html">
            
                    
                    工作队列
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.5.1.3" data-path="../tutorials_with_python/[3]Publish_Subscribe.html">
            
                <a href="../tutorials_with_python/[3]Publish_Subscribe.html">
            
                    
                    发布/订阅
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.5.1.4" data-path="../tutorials_with_python/[4]Routing.html">
            
                <a href="../tutorials_with_python/[4]Routing.html">
            
                    
                    路由
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.5.1.5" data-path="../tutorials_with_python/[5]Topics.html">
            
                <a href="../tutorials_with_python/[5]Topics.html">
            
                    
                    主题交换机
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.5.1.6" data-path="../tutorials_with_python/[6]RPC.html">
            
                <a href="../tutorials_with_python/[6]RPC.html">
            
                    
                    远程过程调用
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.5.2" >
            
                <span>
            
                    
                    C#版
            
                </span>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.5.2.1" data-path="../tutorials_with_csharp/HelloWorld.html">
            
                <a href="../tutorials_with_csharp/HelloWorld.html">
            
                    
                    Hello World
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.5.2.2" data-path="../tutorials_with_csharp/WorkQueue.html">
            
                <a href="../tutorials_with_csharp/WorkQueue.html">
            
                    
                    工作队列
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.5.2.3" data-path="../tutorials_with_csharp/publish&subscribe.html">
            
                <a href="../tutorials_with_csharp/publish&subscribe.html">
            
                    
                    发布/订阅
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.5.2.4" data-path="../tutorials_with_csharp/routing.html">
            
                <a href="../tutorials_with_csharp/routing.html">
            
                    
                    路由
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.5.2.5" data-path="../tutorials_with_csharp/Topics.html">
            
                <a href="../tutorials_with_csharp/Topics.html">
            
                    
                    主题交换机
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.5.2.6" data-path="../tutorials_with_csharp/rpc.html">
            
                <a href="../tutorials_with_csharp/rpc.html">
            
                    
                    远程过程调用
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.5.3" >
            
                <span>
            
                    
                    golang版
            
                </span>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.5.3.1" data-path="[1]Hello_World.html">
            
                <a href="[1]Hello_World.html">
            
                    
                    Hello World
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.5.3.2" data-path="[2]Work_Queues.html">
            
                <a href="[2]Work_Queues.html">
            
                    
                    工作队列
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.5.3.3" data-path="[3]Publish_Subscribe.html">
            
                <a href="[3]Publish_Subscribe.html">
            
                    
                    发布/订阅
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.5.3.4" data-path="[4]Routing.html">
            
                <a href="[4]Routing.html">
            
                    
                    路由
            
                </a>
            

            
        </li>
    
        <li class="chapter active" data-level="1.5.3.5" data-path="[5]Topics.html">
            
                <a href="[5]Topics.html">
            
                    
                    主题交换机
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.5.3.6" data-path="[6]RPC.html">
            
                <a href="[6]RPC.html">
            
                    
                    远程过程调用
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    

            </ul>
            
        </li>
    

    

    <li class="divider"></li>

    <li>
        <a href="https://www.gitbook.com" target="blank" class="gitbook-link">
            Published with GitBook
        </a>
    </li>
</ul>


                </nav>
            
        
    </div>

    <div class="book-body">
        
            <div class="body-inner">
                
                    

<div class="book-header" role="navigation">
    

    <!-- Title -->
    <h1>
        <i class="fa fa-circle-o-notch fa-spin"></i>
        <a href=".." >主题交换机</a>
    </h1>
</div>




                    <div class="page-wrapper" tabindex="-1" role="main">
                        <div class="page-inner">
                            
<div class="search-plus" id="book-search-results">
    <div class="search-noresults">
    
                                <section class="normal markdown-section">
                                
                                <blockquote>
<p>&#x539F;&#x6587;&#xFF1A;<a href="https://www.rabbitmq.com/tutorials/tutorial-five-go.html" _target="blank">Topics</a><br>&#x72B6;&#x6001;&#xFF1A;&#x5F85;&#x6821;&#x5BF9;<br>&#x7FFB;&#x8BD1;&#xFF1A;<a href="https://bingjian-zhu.github.io/" _target="blank">Bingjian-Zhu</a><br>&#x6821;&#x5BF9;&#xFF1A;</p>
</blockquote>
<p><img src="https://upload.wikimedia.org/wikipedia/commons/d/d0/CC-BY-SA_icon.svg" alt="CC-BY-SA"></p>
<h2 id="&#x4E3A;&#x4EC0;&#x4E48;&#x9700;&#x8981;topic&#x4EA4;&#x6362;&#x673A;&#xFF1F;">&#x4E3A;&#x4EC0;&#x4E48;&#x9700;&#x8981;topic&#x4EA4;&#x6362;&#x673A;&#xFF1F;</h2>
<p><strong>&#xFF08;&#x4F7F;&#x7528;Go&#x5BA2;&#x6237;&#x7AEF;&#xFF09;</strong></p>
<!--more-->
<p><a href="https://bingjian-zhu.github.io/2019/09/01/RabbitMQ%E6%95%99%E7%A8%8B%EF%BC%88%E8%AF%91%EF%BC%89-Routing/" _target="blank">&#x4E0A;&#x4E00;&#x7BC7;&#x6559;&#x7A0B;</a>&#xFF0C;&#x6211;&#x4EEC;&#x6539;&#x8FDB;&#x4E86;&#x6211;&#x4EEC;&#x7684;&#x65E5;&#x5FD7;&#x7CFB;&#x7EDF;&#x3002;&#x6211;&#x4EEC;&#x4F7F;&#x7528;<code>direct</code>&#x4EA4;&#x6362;&#x673A;&#x66FF;&#x4EE3;&#x4E86;<code>fanout</code>&#x4EA4;&#x6362;&#x673A;&#xFF0C;&#x4ECE;&#x53EA;&#x80FD;&#x76F2;&#x76EE;&#x7684;&#x5E7F;&#x64AD;&#x6D88;&#x606F;&#x6539;&#x8FDB;&#x4E3A;&#x6709;&#x53EF;&#x80FD;&#x9009;&#x62E9;&#x6027;&#x7684;&#x63A5;&#x6536;&#x65E5;&#x5FD7;&#x3002;</p>
<p>&#x5C3D;&#x7BA1;<code>direct</code>&#x4EA4;&#x6362;&#x673A;&#x80FD;&#x591F;&#x6539;&#x5584;&#x6211;&#x4EEC;&#x7684;&#x7CFB;&#x7EDF;&#xFF0C;&#x4F46;&#x662F;&#x5B83;&#x4E5F;&#x6709;&#x5B83;&#x7684;&#x9650;&#x5236; &#x2014;&#x2014; &#x6CA1;&#x529E;&#x6CD5;&#x57FA;&#x4E8E;&#x591A;&#x4E2A;&#x6807;&#x51C6;&#x6267;&#x884C;&#x8DEF;&#x7531;&#x64CD;&#x4F5C;&#x3002;</p>
<p>&#x5728;&#x6211;&#x4EEC;&#x7684;&#x65E5;&#x5FD7;&#x7CFB;&#x7EDF;&#x4E2D;&#xFF0C;&#x6211;&#x4EEC;&#x4E0D;&#x53EA;&#x5E0C;&#x671B;&#x8BA2;&#x9605;&#x57FA;&#x4E8E;&#x4E25;&#x91CD;&#x7A0B;&#x5EA6;&#x7684;&#x65E5;&#x5FD7;&#xFF0C;&#x540C;&#x65F6;&#x8FD8;&#x5E0C;&#x671B;&#x8BA2;&#x9605;&#x57FA;&#x4E8E;&#x53D1;&#x9001;&#x6765;&#x6E90;&#x7684;&#x65E5;&#x5FD7;&#x3002;Unix&#x5DE5;&#x5177;<a href="http://en.wikipedia.org/wiki/Syslog" _target="blank">syslog</a>&#x5C31;&#x662F;&#x540C;&#x65F6;&#x57FA;&#x4E8E;&#x4E25;&#x91CD;&#x7A0B;&#x5EA6;-severity (info/warn/crit...) &#x548C; &#x8BBE;&#x5907;-facility (auth/cron/kern...)&#x6765;&#x8DEF;&#x7531;&#x65E5;&#x5FD7;&#x7684;&#x3002;</p>
<p>&#x5982;&#x679C;&#x8FD9;&#x6837;&#x7684;&#x8BDD;&#xFF0C;&#x5C06;&#x4F1A;&#x7ED9;&#x4E88;&#x6211;&#x4EEC;&#x975E;&#x5E38;&#x5927;&#x7684;&#x7075;&#x6D3B;&#x6027;&#xFF0C;&#x6211;&#x4EEC;&#x65E2;&#x53EF;&#x4EE5;&#x76D1;&#x542C;&#x6765;&#x6E90;&#x4E8E;&#x201C;cron&#x201D;&#x7684;&#x4E25;&#x91CD;&#x7A0B;&#x5EA6;&#x4E3A;&#x201C;critical errors&#x201D;&#x7684;&#x65E5;&#x5FD7;&#xFF0C;&#x4E5F;&#x53EF;&#x4EE5;&#x76D1;&#x542C;&#x6765;&#x6E90;&#x4E8E;&#x201C;kern&#x201D;&#x7684;&#x6240;&#x6709;&#x65E5;&#x5FD7;&#x3002;</p>
<p>&#x4E3A;&#x4E86;&#x5B9E;&#x73B0;&#x8FD9;&#x4E2A;&#x76EE;&#x7684;&#xFF0C;&#x63A5;&#x4E0B;&#x6765;&#x6211;&#x4EEC;&#x5B66;&#x4E60;&#x5982;&#x4F55;&#x4F7F;&#x7528;&#x53E6;&#x4E00;&#x79CD;&#x66F4;&#x590D;&#x6742;&#x7684;&#x4EA4;&#x6362;&#x673A; &#x2014;&#x2014; topic&#x4EA4;&#x6362;&#x673A;&#x3002;</p>
<h2 id="topic&#x4EA4;&#x6362;&#x673A;">topic&#x4EA4;&#x6362;&#x673A;</h2>
<p>&#x53D1;&#x9001;&#x5230;<code>topic</code>&#x4EA4;&#x6362;&#x673A;&#x7684;&#x6D88;&#x606F;&#x4E0D;&#x53EF;&#x4EE5;&#x643A;&#x5E26;&#x968F;&#x610F;<code>routing_key</code>&#xFF0C;&#x5B83;&#x7684;routing_key&#x5FC5;&#x987B;&#x662F;&#x4E00;&#x4E2A;&#x7531;<code>.</code>&#x5206;&#x9694;&#x5F00;&#x7684;&#x8BCD;&#x8BED;&#x5217;&#x8868;&#x3002;&#x8FD9;&#x4E9B;&#x5355;&#x8BCD;&#x968F;&#x4FBF;&#x662F;&#x4EC0;&#x4E48;&#x90FD;&#x53EF;&#x4EE5;&#xFF0C;&#x4F46;&#x662F;&#x6700;&#x597D;&#x662F;&#x8DDF;&#x643A;&#x5E26;&#x5B83;&#x4EEC;&#x7684;&#x6D88;&#x606F;&#x6709;&#x5173;&#x7CFB;&#x7684;&#x8BCD;&#x6C47;&#x3002;&#x4EE5;&#x4E0B;&#x662F;&#x51E0;&#x4E2A;&#x63A8;&#x8350;&#x7684;&#x4F8B;&#x5B50;&#xFF1A;&quot;stock.usd.nyse&quot;, &quot;nyse.vmw&quot;, &quot;quick.orange.rabbit&quot;&#x3002;&#x8BCD;&#x8BED;&#x7684;&#x4E2A;&#x6570;&#x53EF;&#x4EE5;&#x968F;&#x610F;&#xFF0C;&#x4F46;&#x662F;&#x4E0D;&#x8981;&#x8D85;&#x8FC7;255&#x5B57;&#x8282;&#x3002;</p>
<p>binding key&#x4E5F;&#x5FC5;&#x987B;&#x62E5;&#x6709;&#x540C;&#x6837;&#x7684;&#x683C;&#x5F0F;&#x3002;<code>topic</code>&#x4EA4;&#x6362;&#x673A;&#x80CC;&#x540E;&#x7684;&#x903B;&#x8F91;&#x8DDF;<code>direct</code>&#x4EA4;&#x6362;&#x673A;&#x5F88;&#x76F8;&#x4F3C; &#x2014;&#x2014; &#x4E00;&#x4E2A;&#x643A;&#x5E26;&#x7740;&#x7279;&#x5B9A;routing_key&#x7684;&#x6D88;&#x606F;&#x4F1A;&#x88AB;topic&#x4EA4;&#x6362;&#x673A;&#x6295;&#x9012;&#x7ED9;&#x7ED1;&#x5B9A;&#x952E;&#x4E0E;&#x4E4B;&#x60F3;&#x5339;&#x914D;&#x7684;&#x961F;&#x5217;&#x3002;&#x4F46;&#x662F;&#x5B83;&#x7684;binding key&#x548C;routing_key&#x6709;&#x4E24;&#x4E2A;&#x7279;&#x6B8A;&#x5E94;&#x7528;&#x65B9;&#x5F0F;&#xFF1A;</p>
<ul>
<li><code>*</code> (&#x661F;&#x53F7;) &#x7528;&#x6765;&#x8868;&#x793A;&#x4E00;&#x4E2A;&#x5355;&#x8BCD;.</li>
<li><code>#</code> (&#x4E95;&#x53F7;) &#x7528;&#x6765;&#x8868;&#x793A;&#x4EFB;&#x610F;&#x6570;&#x91CF;&#xFF08;&#x96F6;&#x4E2A;&#x6216;&#x591A;&#x4E2A;&#xFF09;&#x5355;&#x8BCD;&#x3002;</li>
</ul>
<p>&#x4E0B;&#x8FB9;&#x7528;&#x56FE;&#x8BF4;&#x660E;&#xFF1A;<br><img src="http://www.rabbitmq.com/img/tutorials/python-five.png" alt="None"></p>
<p>&#x8FD9;&#x4E2A;&#x4F8B;&#x5B50;&#x91CC;&#xFF0C;&#x6211;&#x4EEC;&#x53D1;&#x9001;&#x7684;&#x6240;&#x6709;&#x6D88;&#x606F;&#x90FD;&#x662F;&#x7528;&#x6765;&#x63CF;&#x8FF0;&#x5C0F;&#x52A8;&#x7269;&#x7684;&#x3002;&#x53D1;&#x9001;&#x7684;&#x6D88;&#x606F;&#x6240;&#x643A;&#x5E26;&#x7684;&#x8DEF;&#x7531;&#x952E;&#x662F;&#x7531;&#x4E09;&#x4E2A;&#x5355;&#x8BCD;&#x6240;&#x7EC4;&#x6210;&#x7684;&#xFF0C;&#x8FD9;&#x4E09;&#x4E2A;&#x5355;&#x8BCD;&#x88AB;&#x4E24;&#x4E2A;<code>.</code>&#x5206;&#x5272;&#x5F00;&#x3002;&#x8DEF;&#x7531;&#x952E;&#x91CC;&#x7684;&#x7B2C;&#x4E00;&#x4E2A;&#x5355;&#x8BCD;&#x63CF;&#x8FF0;&#x7684;&#x662F;&#x52A8;&#x7269;&#x7684;&#x624B;&#x811A;&#x7684;&#x5229;&#x7D22;&#x7A0B;&#x5EA6;&#xFF0C;&#x7B2C;&#x4E8C;&#x4E2A;&#x5355;&#x8BCD;&#x662F;&#x52A8;&#x7269;&#x7684;&#x989C;&#x8272;&#xFF0C;&#x7B2C;&#x4E09;&#x4E2A;&#x662F;&#x52A8;&#x7269;&#x7684;&#x79CD;&#x7C7B;&#x3002;&#x6240;&#x4EE5;&#x5B83;&#x770B;&#x8D77;&#x6765;&#x662F;&#x8FD9;&#x6837;&#x7684;&#xFF1A; <code>&lt;celerity&gt;.&lt;colour&gt;.&lt;species&gt;</code>&#x3002;</p>
<p>&#x6211;&#x4EEC;&#x521B;&#x5EFA;&#x4E86;&#x4E09;&#x4E2A;&#x7ED1;&#x5B9A;&#xFF1A;Q1&#x7684;&#x7ED1;&#x5B9A;&#x952E;&#x4E3A; <code>*.orange.*</code>&#xFF0C;Q2&#x7684;&#x7ED1;&#x5B9A;&#x952E;&#x4E3A; <code>*.*.rabbit</code> &#x548C; <code>lazy.#</code> &#x3002;</p>
<p>&#x8FD9;&#x4E09;&#x4E2A;&#x7ED1;&#x5B9A;&#x952E;&#x88AB;&#x53EF;&#x4EE5;&#x603B;&#x7ED3;&#x4E3A;&#xFF1A;</p>
<ul>
<li>Q1 &#x5BF9;<em>&#x6240;&#x6709;&#x7684;&#x6854;&#x9EC4;&#x8272;&#x52A8;&#x7269;</em>&#x90FD;&#x611F;&#x5174;&#x8DA3;&#x3002;</li>
<li>Q2 &#x5219;&#x662F;&#x5BF9;<em>&#x6240;&#x6709;&#x7684;&#x5154;&#x5B50;</em>&#x548C;<em>&#x6240;&#x6709;&#x61D2;&#x60F0;&#x7684;&#x52A8;&#x7269;</em>&#x611F;&#x5174;&#x8DA3;&#x3002;</li>
</ul>
<p>&#x4E00;&#x4E2A;&#x643A;&#x5E26;&#x6709; <code>quick.orange.rabbit</code> &#x7684;&#x6D88;&#x606F;&#x5C06;&#x4F1A;&#x88AB;&#x5206;&#x522B;&#x6295;&#x9012;&#x7ED9;&#x8FD9;&#x4E24;&#x4E2A;&#x961F;&#x5217;&#x3002;&#x643A;&#x5E26;&#x7740; <code>lazy.orange.elephant</code> &#x7684;&#x6D88;&#x606F;&#x540C;&#x6837;&#x4E5F;&#x4F1A;&#x7ED9;&#x4E24;&#x4E2A;&#x961F;&#x5217;&#x90FD;&#x6295;&#x9012;&#x8FC7;&#x53BB;&#x3002;&#x53E6;&#x4E00;&#x65B9;&#x9762;&#x643A;&#x5E26;&#x6709; <code>quick.orange.fox</code> &#x7684;&#x6D88;&#x606F;&#x4F1A;&#x6295;&#x9012;&#x7ED9;&#x7B2C;&#x4E00;&#x4E2A;&#x961F;&#x5217;&#xFF0C;&#x643A;&#x5E26;&#x6709; <code>lazy.brown.fox</code> &#x7684;&#x6D88;&#x606F;&#x4F1A;&#x6295;&#x9012;&#x7ED9;&#x7B2C;&#x4E8C;&#x4E2A;&#x961F;&#x5217;&#x3002;&#x643A;&#x5E26;&#x6709; <code>lazy.pink.rabbit</code> &#x7684;&#x6D88;&#x606F;&#x53EA;&#x4F1A;&#x88AB;&#x6295;&#x9012;&#x7ED9;&#x7B2C;&#x4E8C;&#x4E2A;&#x961F;&#x5217;&#x4E00;&#x6B21;&#xFF0C;&#x5373;&#x4F7F;&#x5B83;&#x540C;&#x65F6;&#x5339;&#x914D;&#x7B2C;&#x4E8C;&#x4E2A;&#x961F;&#x5217;&#x7684;&#x4E24;&#x4E2A;&#x7ED1;&#x5B9A;&#x3002;&#x643A;&#x5E26;&#x7740; <code>quick.brown.fox</code> &#x7684;&#x6D88;&#x606F;&#x4E0D;&#x4F1A;&#x6295;&#x9012;&#x7ED9;&#x4EFB;&#x4F55;&#x4E00;&#x4E2A;&#x961F;&#x5217;&#x3002;</p>
<p>&#x5982;&#x679C;&#x6211;&#x4EEC;&#x8FDD;&#x53CD;&#x7EA6;&#x5B9A;&#xFF0C;&#x53D1;&#x9001;&#x4E86;&#x4E00;&#x4E2A;&#x643A;&#x5E26;&#x6709;&#x4E00;&#x4E2A;&#x5355;&#x8BCD;&#x6216;&#x8005;&#x56DB;&#x4E2A;&#x5355;&#x8BCD;&#xFF08;<code>&quot;orange&quot;</code> or <code>&quot;quick.orange.male.rabbit&quot;</code>&#xFF09;&#x7684;&#x6D88;&#x606F;&#x65F6;&#xFF0C;&#x53D1;&#x9001;&#x7684;&#x6D88;&#x606F;&#x4E0D;&#x4F1A;&#x6295;&#x9012;&#x7ED9;&#x4EFB;&#x4F55;&#x4E00;&#x4E2A;&#x961F;&#x5217;&#xFF0C;&#x800C;&#x4E14;&#x4F1A;&#x4E22;&#x5931;&#x6389;&#x3002;</p>
<p>&#x4F46;&#x662F;&#x53E6;&#x4E00;&#x65B9;&#x9762;&#xFF0C;&#x5373;&#x4F7F; <code>&quot;lazy.orange.male.rabbit&quot;</code> &#x6709;&#x56DB;&#x4E2A;&#x5355;&#x8BCD;&#xFF0C;&#x4ED6;&#x8FD8;&#x662F;&#x4F1A;&#x5339;&#x914D;&#x6700;&#x540E;&#x4E00;&#x4E2A;&#x7ED1;&#x5B9A;&#xFF0C;&#x5E76;&#x4E14;&#x88AB;&#x6295;&#x9012;&#x5230;&#x7B2C;&#x4E8C;&#x4E2A;&#x961F;&#x5217;&#x4E2D;&#x3002;</p>
<blockquote>
<h4 id="topic&#x4EA4;&#x6362;&#x673A;">Topic&#x4EA4;&#x6362;&#x673A;</h4>
<p>Topic&#x4EA4;&#x6362;&#x673A;&#x662F;&#x5F88;&#x5F3A;&#x5927;&#x7684;&#xFF0C;&#x5B83;&#x53EF;&#x4EE5;&#x8868;&#x73B0;&#x51FA;&#x8DDF;&#x5176;&#x4ED6;&#x4EA4;&#x6362;&#x673A;&#x7C7B;&#x4F3C;&#x7684;&#x884C;&#x4E3A;
&#x5F53;&#x4E00;&#x4E2A;&#x961F;&#x5217;&#x7684;binding key&#x4E3A; &quot;#&quot;&#xFF08;&#x4E95;&#x53F7;&#xFF09; &#x7684;&#x65F6;&#x5019;&#xFF0C;&#x8FD9;&#x4E2A;&#x961F;&#x5217;&#x5C06;&#x4F1A;&#x65E0;&#x89C6;&#x6D88;&#x606F;&#x7684;routing key&#xFF0C;&#x63A5;&#x6536;&#x6240;&#x6709;&#x7684;&#x6D88;&#x606F;&#x3002;
&#x5F53; <code>*</code> (&#x661F;&#x53F7;) &#x548C; <code>#</code> (&#x4E95;&#x53F7;) &#x8FD9;&#x4E24;&#x4E2A;&#x7279;&#x6B8A;&#x5B57;&#x7B26;&#x90FD;&#x672A;&#x5728;binding key&#x4E2D;&#x51FA;&#x73B0;&#x7684;&#x65F6;&#x5019;&#xFF0C;&#x6B64;&#x65F6;Topic&#x4EA4;&#x6362;&#x673A;&#x5C31;&#x62E5;&#x6709;&#x7684;direct&#x4EA4;&#x6362;&#x673A;&#x7684;&#x884C;&#x4E3A;&#x3002;</p>
</blockquote>
<h2 id="&#x4EE3;&#x7801;&#x6574;&#x5408;">&#x4EE3;&#x7801;&#x6574;&#x5408;</h2>
<p>&#x63A5;&#x4E0B;&#x6765;&#x6211;&#x4EEC;&#x4F1A;&#x5C06;Topic&#x4EA4;&#x6362;&#x673A;&#x5E94;&#x7528;&#x5230;&#x6211;&#x4EEC;&#x7684;&#x65E5;&#x5FD7;&#x7CFB;&#x7EDF;&#x4E2D;&#x3002;&#x5728;&#x5F00;&#x59CB;&#x5DE5;&#x4F5C;&#x524D;&#xFF0C;&#x6211;&#x4EEC;&#x5047;&#x8BBE;&#x65E5;&#x5FD7;&#x7684;routing key&#x7531;&#x4E24;&#x4E2A;&#x5355;&#x8BCD;&#x7EC4;&#x6210;&#xFF0C;routing key&#x770B;&#x8D77;&#x6765;&#x662F;&#x8FD9;&#x6837;&#x7684;&#xFF1A;<code>&lt;facility&gt;.&lt;severity&gt;</code></p>
<p>&#x4EE3;&#x7801;&#x8DDF;<a href="https://bingjian-zhu.github.io/2019/09/01/RabbitMQ%E6%95%99%E7%A8%8B%EF%BC%88%E8%AF%91%EF%BC%89-Routing/" _target="blank">&#x4E0A;&#x4E00;&#x7BC7;&#x6559;&#x7A0B;</a>&#x5DEE;&#x4E0D;&#x591A;&#x3002;</p>
<p>emit_log_topic.go&#x7684;&#x4EE3;&#x7801;&#xFF1A;</p>
<pre><code class="lang-go"><span class="hljs-keyword">package</span> main

<span class="hljs-keyword">import</span> (
        <span class="hljs-string">&quot;log&quot;</span>
        <span class="hljs-string">&quot;os&quot;</span>
        <span class="hljs-string">&quot;strings&quot;</span>

        <span class="hljs-string">&quot;github.com/streadway/amqp&quot;</span>
)

<span class="hljs-keyword">func</span> failOnError(err error, msg <span class="hljs-keyword">string</span>) {
        <span class="hljs-keyword">if</span> err != <span class="hljs-literal">nil</span> {
                log.Fatalf(<span class="hljs-string">&quot;%s: %s&quot;</span>, msg, err)
        }
}

<span class="hljs-keyword">func</span> main() {
        conn, err := amqp.Dial(<span class="hljs-string">&quot;amqp://guest:guest@localhost:5672/&quot;</span>)
        failOnError(err, <span class="hljs-string">&quot;Failed to connect to RabbitMQ&quot;</span>)
        <span class="hljs-keyword">defer</span> conn.Close()

        ch, err := conn.Channel()
        failOnError(err, <span class="hljs-string">&quot;Failed to open a channel&quot;</span>)
        <span class="hljs-keyword">defer</span> ch.Close()

        err = ch.ExchangeDeclare(
                <span class="hljs-string">&quot;logs_topic&quot;</span>, <span class="hljs-comment">// name</span>
                <span class="hljs-string">&quot;topic&quot;</span>,      <span class="hljs-comment">// type</span>
                <span class="hljs-literal">true</span>,         <span class="hljs-comment">// durable</span>
                <span class="hljs-literal">false</span>,        <span class="hljs-comment">// auto-deleted</span>
                <span class="hljs-literal">false</span>,        <span class="hljs-comment">// internal</span>
                <span class="hljs-literal">false</span>,        <span class="hljs-comment">// no-wait</span>
                <span class="hljs-literal">nil</span>,          <span class="hljs-comment">// arguments</span>
        )
        failOnError(err, <span class="hljs-string">&quot;Failed to declare an exchange&quot;</span>)

        body := bodyFrom(os.Args)
        err = ch.Publish(
                <span class="hljs-string">&quot;logs_topic&quot;</span>,          <span class="hljs-comment">// exchange</span>
                severityFrom(os.Args), <span class="hljs-comment">// routing key</span>
                <span class="hljs-literal">false</span>, <span class="hljs-comment">// mandatory</span>
                <span class="hljs-literal">false</span>, <span class="hljs-comment">// immediate</span>
                amqp.Publishing{
                        ContentType: <span class="hljs-string">&quot;text/plain&quot;</span>,
                        Body:        []<span class="hljs-keyword">byte</span>(body),
                })
        failOnError(err, <span class="hljs-string">&quot;Failed to publish a message&quot;</span>)

        log.Printf(<span class="hljs-string">&quot; [x] Sent %s&quot;</span>, body)
}

<span class="hljs-keyword">func</span> bodyFrom(args []<span class="hljs-keyword">string</span>) <span class="hljs-keyword">string</span> {
        <span class="hljs-keyword">var</span> s <span class="hljs-keyword">string</span>
        <span class="hljs-keyword">if</span> (<span class="hljs-built_in">len</span>(args) &lt; <span class="hljs-number">3</span>) || os.Args[<span class="hljs-number">2</span>] == <span class="hljs-string">&quot;&quot;</span> {
                s = <span class="hljs-string">&quot;hello&quot;</span>
        } <span class="hljs-keyword">else</span> {
                s = strings.Join(args[<span class="hljs-number">2</span>:], <span class="hljs-string">&quot; &quot;</span>)
        }
        <span class="hljs-keyword">return</span> s
}

<span class="hljs-keyword">func</span> severityFrom(args []<span class="hljs-keyword">string</span>) <span class="hljs-keyword">string</span> {
        <span class="hljs-keyword">var</span> s <span class="hljs-keyword">string</span>
        <span class="hljs-keyword">if</span> (<span class="hljs-built_in">len</span>(args) &lt; <span class="hljs-number">2</span>) || os.Args[<span class="hljs-number">1</span>] == <span class="hljs-string">&quot;&quot;</span> {
                s = <span class="hljs-string">&quot;anonymous.info&quot;</span>
        } <span class="hljs-keyword">else</span> {
                s = os.Args[<span class="hljs-number">1</span>]
        }
        <span class="hljs-keyword">return</span> s
}
</code></pre>
<p>receive_logs_topic.go&#x7684;&#x4EE3;&#x7801;&#xFF1A;</p>
<pre><code class="lang-go"><span class="hljs-keyword">package</span> main

<span class="hljs-keyword">import</span> (
        <span class="hljs-string">&quot;log&quot;</span>
        <span class="hljs-string">&quot;os&quot;</span>

        <span class="hljs-string">&quot;github.com/streadway/amqp&quot;</span>
)

<span class="hljs-keyword">func</span> failOnError(err error, msg <span class="hljs-keyword">string</span>) {
        <span class="hljs-keyword">if</span> err != <span class="hljs-literal">nil</span> {
                log.Fatalf(<span class="hljs-string">&quot;%s: %s&quot;</span>, msg, err)
        }
}

<span class="hljs-keyword">func</span> main() {
        conn, err := amqp.Dial(<span class="hljs-string">&quot;amqp://guest:guest@localhost:5672/&quot;</span>)
        failOnError(err, <span class="hljs-string">&quot;Failed to connect to RabbitMQ&quot;</span>)
        <span class="hljs-keyword">defer</span> conn.Close()

        ch, err := conn.Channel()
        failOnError(err, <span class="hljs-string">&quot;Failed to open a channel&quot;</span>)
        <span class="hljs-keyword">defer</span> ch.Close()

        err = ch.ExchangeDeclare(
                <span class="hljs-string">&quot;logs_topic&quot;</span>, <span class="hljs-comment">// name</span>
                <span class="hljs-string">&quot;topic&quot;</span>,      <span class="hljs-comment">// type</span>
                <span class="hljs-literal">true</span>,         <span class="hljs-comment">// durable</span>
                <span class="hljs-literal">false</span>,        <span class="hljs-comment">// auto-deleted</span>
                <span class="hljs-literal">false</span>,        <span class="hljs-comment">// internal</span>
                <span class="hljs-literal">false</span>,        <span class="hljs-comment">// no-wait</span>
                <span class="hljs-literal">nil</span>,          <span class="hljs-comment">// arguments</span>
        )
        failOnError(err, <span class="hljs-string">&quot;Failed to declare an exchange&quot;</span>)

        q, err := ch.QueueDeclare(
                <span class="hljs-string">&quot;&quot;</span>,    <span class="hljs-comment">// name</span>
                <span class="hljs-literal">false</span>, <span class="hljs-comment">// durable</span>
                <span class="hljs-literal">false</span>, <span class="hljs-comment">// delete when usused</span>
                <span class="hljs-literal">true</span>,  <span class="hljs-comment">// exclusive</span>
                <span class="hljs-literal">false</span>, <span class="hljs-comment">// no-wait</span>
                <span class="hljs-literal">nil</span>,   <span class="hljs-comment">// arguments</span>
        )
        failOnError(err, <span class="hljs-string">&quot;Failed to declare a queue&quot;</span>)

        <span class="hljs-keyword">if</span> <span class="hljs-built_in">len</span>(os.Args) &lt; <span class="hljs-number">2</span> {
                log.Printf(<span class="hljs-string">&quot;Usage: %s [binding_key]...&quot;</span>, os.Args[<span class="hljs-number">0</span>])
                os.Exit(<span class="hljs-number">0</span>)
        }
        <span class="hljs-keyword">for</span> _, s := <span class="hljs-keyword">range</span> os.Args[<span class="hljs-number">1</span>:] {
                log.Printf(<span class="hljs-string">&quot;Binding queue %s to exchange %s with routing key %s&quot;</span>,
                        q.Name, <span class="hljs-string">&quot;logs_topic&quot;</span>, s)
                err = ch.QueueBind(
                        q.Name,       <span class="hljs-comment">// queue name</span>
                        s,            <span class="hljs-comment">// routing key</span>
                        <span class="hljs-string">&quot;logs_topic&quot;</span>, <span class="hljs-comment">// exchange</span>
                        <span class="hljs-literal">false</span>,
                        <span class="hljs-literal">nil</span>)
                failOnError(err, <span class="hljs-string">&quot;Failed to bind a queue&quot;</span>)
        }

        msgs, err := ch.Consume(
                q.Name, <span class="hljs-comment">// queue</span>
                <span class="hljs-string">&quot;&quot;</span>,     <span class="hljs-comment">// consumer</span>
                <span class="hljs-literal">true</span>,   <span class="hljs-comment">// auto ack</span>
                <span class="hljs-literal">false</span>,  <span class="hljs-comment">// exclusive</span>
                <span class="hljs-literal">false</span>,  <span class="hljs-comment">// no local</span>
                <span class="hljs-literal">false</span>,  <span class="hljs-comment">// no wait</span>
                <span class="hljs-literal">nil</span>,    <span class="hljs-comment">// args</span>
        )
        failOnError(err, <span class="hljs-string">&quot;Failed to register a consumer&quot;</span>)

        forever := <span class="hljs-built_in">make</span>(<span class="hljs-keyword">chan</span> <span class="hljs-keyword">bool</span>)

        <span class="hljs-keyword">go</span> <span class="hljs-keyword">func</span>() {
                <span class="hljs-keyword">for</span> d := <span class="hljs-keyword">range</span> msgs {
                        log.Printf(<span class="hljs-string">&quot; [x] %s&quot;</span>, d.Body)
                }
        }()

        log.Printf(<span class="hljs-string">&quot; [*] Waiting for logs. To exit press CTRL+C&quot;</span>)
        &lt;-forever
}
</code></pre>
<p>&#x6267;&#x884C;&#x4E0B;&#x8FB9;&#x547D;&#x4EE4; &#x63A5;&#x6536;&#x6240;&#x6709;&#x65E5;&#x5FD7;&#xFF1A;  </p>
<pre><code>go run receive_logs_topic.go &quot;#&quot;
</code></pre><p>&#x6267;&#x884C;&#x4E0B;&#x8FB9;&#x547D;&#x4EE4; &#x63A5;&#x6536;&#x6765;&#x81EA;&#x201D;kern&#x201C;&#x8BBE;&#x5907;&#x7684;&#x65E5;&#x5FD7;&#xFF1A;  </p>
<pre><code>go run receive_logs_topic.go &quot;kern.*&quot;
</code></pre><p>&#x6267;&#x884C;&#x4E0B;&#x8FB9;&#x547D;&#x4EE4; &#x53EA;&#x63A5;&#x6536;&#x4E25;&#x91CD;&#x7A0B;&#x5EA6;&#x4E3A;&#x201D;critical&#x201C;&#x7684;&#x65E5;&#x5FD7;&#xFF1A;  </p>
<pre><code>go run receive_logs_topic.go &quot;*.critical&quot;
</code></pre><p>&#x6267;&#x884C;&#x4E0B;&#x8FB9;&#x547D;&#x4EE4; &#x5EFA;&#x7ACB;&#x591A;&#x4E2A;&#x7ED1;&#x5B9A;&#xFF1A;  </p>
<pre><code>go run receive_logs_topic.go &quot;kern.*&quot; &quot;*.critical&quot;
</code></pre><p>&#x6267;&#x884C;&#x4E0B;&#x8FB9;&#x547D;&#x4EE4; &#x53D1;&#x9001;&#x8DEF;&#x7531;&#x952E;&#x4E3A; &quot;kern.critical&quot; &#x7684;&#x65E5;&#x5FD7;&#xFF1A;  </p>
<pre><code>go run emit_log_topic.go &quot;kern.critical&quot; &quot;A critical kernel error&quot;
</code></pre><p>&#x6267;&#x884C;&#x4E0A;&#x8FB9;&#x547D;&#x4EE4;&#x8BD5;&#x8BD5;&#x770B;&#x6548;&#x679C;&#x5427;&#x3002;&#x53E6;&#x5916;&#xFF0C;&#x4E0A;&#x8FB9;&#x4EE3;&#x7801;&#x4E0D;&#x4F1A;&#x5BF9;&#x8DEF;&#x7531;&#x952E;&#x548C;&#x7ED1;&#x5B9A;&#x952E;&#x505A;&#x4EFB;&#x4F55;&#x5047;&#x8BBE;&#xFF0C;&#x6240;&#x4EE5;&#x4F60;&#x53EF;&#x4EE5;&#x5728;&#x547D;&#x4EE4;&#x4E2D;&#x4F7F;&#x7528;&#x8D85;&#x8FC7;&#x4E24;&#x4E2A;&#x8DEF;&#x7531;&#x952E;&#x53C2;&#x6570;&#x3002;</p>
<h3 id="&#x5982;&#x679C;&#x4F60;&#x73B0;&#x5728;&#x8FD8;&#x6CA1;&#x88AB;&#x641E;&#x6655;&#xFF0C;&#x60F3;&#x60F3;&#x4E0B;&#x8FB9;&#x95EE;&#x9898;">&#x5982;&#x679C;&#x4F60;&#x73B0;&#x5728;&#x8FD8;&#x6CA1;&#x88AB;&#x641E;&#x6655;&#xFF0C;&#x60F3;&#x60F3;&#x4E0B;&#x8FB9;&#x95EE;&#x9898;:</h3>
<ul>
<li>&#x7ED1;&#x5B9A;&#x952E;&#x4E3A; <code>*</code> &#x7684;&#x961F;&#x5217;&#x4F1A;&#x53D6;&#x5230;&#x4E00;&#x4E2A;routing key&#x4E3A;&#x7A7A;&#x7684;&#x6D88;&#x606F;&#x5417;&#xFF1F;  </li>
<li>&#x7ED1;&#x5B9A;&#x952E;&#x4E3A; <code>#.*</code> &#x7684;&#x961F;&#x5217;&#x4F1A;&#x83B7;&#x53D6;&#x5230;&#x4E00;&#x4E2A;&#x540D;&#x4E3A;<code>..</code>&#x7684;&#x8DEF;&#x7531;&#x952E;&#x7684;&#x6D88;&#x606F;&#x5417;&#xFF1F;&#x5B83;&#x4F1A;&#x53D6;&#x5230;&#x4E00;&#x4E2A;routing key&#x4E3A;&#x5355;&#x4E2A;&#x5355;&#x8BCD;&#x7684;&#x6D88;&#x606F;&#x5417;&#xFF1F;  </li>
<li><code>a.*.#</code> &#x548C; <code>a.#</code>&#x7684;&#x533A;&#x522B;&#x5728;&#x54EA;&#x513F;&#xFF1F;</li>
</ul>
<p>&#xFF08;&#x5B8C;&#x6574;&#x4EE3;&#x7801;&#x53C2;&#x89C1;<a href="https://github.com/rabbitmq/rabbitmq-tutorials/blob/master/go/emit_log_topic.go" _target="blank">emit_logs_topic.go</a> and <a href="https://github.com/rabbitmq/rabbitmq-tutorials/blob/master/go/receive_logs_topic.go" _target="blank">receive_logs_topic.go</a>)</p>

                                
                                </section>
                            
    </div>
    <div class="search-results">
        <div class="has-results">
            
            <h1 class="search-results-title"><span class='search-results-count'></span> results matching "<span class='search-query'></span>"</h1>
            <ul class="search-results-list"></ul>
            
        </div>
        <div class="no-results">
            
            <h1 class="search-results-title">No results matching "<span class='search-query'></span>"</h1>
            
        </div>
    </div>
</div>

                        </div>
                    </div>
                
            </div>

            
                
                <a href="[4]Routing.html" class="navigation navigation-prev " aria-label="Previous page: 路由">
                    <i class="fa fa-angle-left"></i>
                </a>
                
                
                <a href="[6]RPC.html" class="navigation navigation-next " aria-label="Next page: 远程过程调用">
                    <i class="fa fa-angle-right"></i>
                </a>
                
            
        
    </div>

    <script>
        var gitbook = gitbook || [];
        gitbook.push(function() {
            gitbook.page.hasChanged({"page":{"title":"主题交换机","level":"1.5.3.5","depth":3,"next":{"title":"远程过程调用","level":"1.5.3.6","depth":3,"path":"tutorials_with_golang/[6]RPC.md","ref":"tutorials_with_golang/[6]RPC.md","articles":[]},"previous":{"title":"路由","level":"1.5.3.4","depth":3,"path":"tutorials_with_golang/[4]Routing.md","ref":"tutorials_with_golang/[4]Routing.md","articles":[]},"dir":"ltr"},"config":{"plugins":["ga","expandable-chapters-interactive","-lunr","-search","search-plus"],"root":"./published","styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"},"pluginsConfig":{"ga":{"token":"UA-120619814-1","configuration":"auto"},"expandable-chapters-interactive":{},"search-plus":{},"highlight":{},"sharing":{"facebook":true,"twitter":true,"google":false,"weibo":false,"instapaper":false,"vk":false,"all":["facebook","google","twitter","weibo","instapaper"]},"fontsettings":{"theme":"white","family":"sans","size":2},"theme-default":{"styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"},"showLevel":false}},"theme":"default","author":"Ping <yuanta11@gmil.com>","pdf":{"pageNumbers":true,"fontSize":12,"fontFamily":"Arial","paperSize":"a4","chapterMark":"pagebreak","pageBreaksBefore":"/","margin":{"right":62,"left":62,"top":56,"bottom":56}},"structure":{"langs":"LANGS.md","readme":"README.md","glossary":"GLOSSARY.md","summary":"SUMMARY.md"},"variables":{},"title":"RabbitMQ in Chinese","links":{"sharing":{"all":null,"facebook":null,"google":null,"twitter":null,"weibo":null},"sidebar":{"瓶先生":"http://mr-ping.com"}},"gitbook":"=3.0.0-pre.14","description":"RabbitMQ in Chinese"},"file":{"path":"tutorials_with_golang/[5]Topics.md","mtime":"2020-10-30T03:40:00.900Z","type":"markdown"},"gitbook":{"version":"3.0.0-pre.14","time":"2020-10-30T03:40:06.094Z"},"basePath":"..","book":{"language":""}});
        });
    </script>
</div>

        
    <script src="../gitbook/gitbook.js"></script>
    <script src="../gitbook/theme.js"></script>
    
        
        <script src="../gitbook/gitbook-plugin-ga/plugin.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-expandable-chapters-interactive/expandable-chapters.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-search-plus/jquery.mark.min.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-search-plus/search.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-sharing/buttons.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-fontsettings/buttons.js"></script>
        
    

    </body>
</html>

